﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CandyMergeTool.Model
{
    public class CandyCrush
    {
        private readonly Cell[,] m_cells;

        public CandyCrush(int nbHorizontalCells, int nbVerticalCells)
        {
            m_cells = new Cell[nbHorizontalCells,nbVerticalCells];
        }

        public Cell this[int x,int y]
        {
            get { return m_cells[x,y]; }
            set { m_cells[x,y] = value; }
        }

        public Cell[,] Cells { get { return m_cells; } }
    }
}
